<!-- 引用共用head 部分 -->
<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <title>硕士专业目录_中国研究生招生信息网</title>
    <meta name="robots" content="all">
    <meta name="keywords" content="硕士专业目录,考研专业目录查询,研究生 招生,研究生">
    <meta name="description"
          content="中国研究生招生信息网提供权威的硕士专业目录查询服务，用户可查询到硕士招生各个专业的考试范围。">
    <link rel="dns-prefetch" href="//axvert.chsi.com.cn">
    <link rel="dns-prefetch" href="//t1.chei.com.cn">
    <link rel="dns-prefetch" href="//t2.chei.com.cn">
    <link rel="dns-prefetch" href="//t3.chei.com.cn">
    <link rel="dns-prefetch" href="//t4.chei.com.cn">
    <link rel="dns-prefetch" href="//www.google-analytics.com">
    <link rel="shortcut icon" href="https://t4.chei.com.cn/yz/favicon.ico?20200918" type="image/x-icon">
    <link rel="stylesheet" href="https://t1.chei.com.cn/common/ch/iconfont.css">
    <link rel="stylesheet" href="https://t1.chei.com.cn/yz/assets/css/yz.min.css">
    <style>
        .more-content th {
            padding: 12px 8px;
            font-size: 14px;
        }

        .more-content td {
            padding: 12px 8px;
            font-size: 14px;
        }
    </style>
    <script src="https://t1.chei.com.cn/common/jquery/1.8.3/jquery.min.js"></script>
    <script src="https://t1.chei.com.cn/common/axvert/js/showchsi_m.js"></script>
    <script src="https://t1.chei.com.cn/common/zhuge/zhuge-1.0.0.js"></script>
    <script type="text/javascript">
        // 停用诸葛埋点
        window.zhuge = window.zhuge || [];
        window.zhuge.load = function (b, x) {
        };
        window.zhuge.track = function (b, x) {
        };
        var zhugeFun = {
            init: function (flag) {
                var OpenautoTrack = typeof flag != 'undefined' ? flag : false; //是否开启全埋点
                window.zhuge.load('adfb574f9c54457db21741353c3b0aa7', { //配置应用的AppKey
                    autoTrack: OpenautoTrack
                });
            },
            centerListClick: function (tab, title, type) {
                zhuge.track('个人中心_入口点击', {
                    '入口类别': tab,
                    '入口名称': title,
                    '设备信息': type
                });
            }
        };
        // 百度统计
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?3916ecc93c59d4c6e9d954a54f37d84c";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-100524-7"></script>
    <script>
        function gaTrackerOutboundLink(ele, eventCategory, eventAction, eventLabel) {
            gtag('event', eventAction, {
                'event_category': eventCategory,
                'event_label': eventLabel
            });
            return true;
        };
        window.dataLayer = window.dataLayer || [];

        function gtag() {
            dataLayer.push(arguments);
        }

        gtag('js', new Date());
        gtag('config', 'UA-100524-7', {'sample_rate': 5});
    </script>
</head>
<body class="ch-sticky">
<div class="main-wrapper"><!-- 1：吊顶区域 -->
    <style>
        /**
         * description: top-nav-wrapper: 吊顶;
         * author: myx;
         * date: 2017-08;
         */
        body {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .top-nav-wrapper {
            width: 100%;
            height: 40px;
            line-height: 40px;
            background: #f7f9fa;
            border-bottom: 1px solid #d6d6d6;
            font-size: 12px;
            box-sizing: border-box;
        }

        .top-nav-wrapper * {
            box-sizing: content-box;
        }

        .top-nav-wrapper a {
            color: #13161B;
        }

        .top-nav-wrapper a.hot {
            color: #ee6464;
        }

        .top-nav-wrapper a:hover {
            text-decoration: underline;
        }

        .top-nav-wrapper .top-nav {
            width: 1180px;
            margin: 0 auto;
        }

        .top-nav-wrapper .top-nav-list {
            float: left;
            width: 980px;
            height: 40px;
        }

        .top-nav-wrapper .top-nav-list a {
            margin: 0 10px;
        }

        .top-nav-wrapper .top-nav-list a.top-nav-home {
            display: inline-block;
            width: 45px;
            height: 40px;
            padding-left: 50px;
            margin-right: 15px;
            margin-left: 0px;
            margin-top: -1px;
            background-image: url('https://t2.chei.com.cn/yz/assets/images/logo-min.png');
            background-image: -webkit-image-set(url('https://t2.chei.com.cn/yz/assets/images/logo-min.png') 1x, url('https://t4.chei.com.cn/yz/assets/images/logo-min2x.png') 2x);
            background-repeat: no-repeat;
            background-position: 0 11px;
            color: #1887E0;
            font-weight: bold;
            vertical-align: middle;
        }

        .top-nav-wrapper .top-nav-list a.top-nav-home:hover {
            text-decoration: none;
        }

        .top-nav-wrapper .top-nav-load {
            float: right;
            width: 200px;
            height: 40px;
            text-align: right;
        }

        .top-nav-wrapper .top-nav-load a {
            margin: 0 5px;
        }

        .top-nav-hide {
            position: relative;
            margin-left: 10px;
            cursor: pointer;
            color: #8D949F;
        }

        .top-nav-hide:hover {
            color: #13161B;
        }

        .top-nav-hide:hover .top-nav-pop {
            display: block;
        }

        .top-nav-hide .iconfont {
            font-size: 12px;
            margin-right: -5px;
        }

        .top-nav-pop {
            display: none;
            position: absolute;
            left: 0px;
            top: 12px;
            padding-top: 14px;
            z-index: 9999;
        }

        .top-nav-hide ul {
            width: 135px;
            padding: 6px 0;
            border: 1px solid #e5e5e5;
            border-bottom: none;
            background: #fff;
            box-shadow: 2px 2px 8px #cdcdcd;
        }

        .top-nav-hide li {
            line-height: 35px;
        }

        .top-nav-wrapper .top-nav-hide li a {
            display: block;
            margin: 0 10px;
            border-bottom: 1px dashed #e5e5e5;
        }

        .top-nav-wrapper .top-nav-hide li.last a {
            border-bottom: none;
        }

        .top-nav-wrapper .top-nav-hide li a:hover {
            background: #f2f2f2;
            margin: 0;
            padding: 0 10px;
            border-bottom: 1px dashed #f2f2f2;
            font-weight: 700;
            text-decoration: none;
        }

        .top-nav-wrapper .top-nav-hide li.last a:hover {
            border-bottom: none;
        }

        .top-nav-point {
            font-family: tahoma, arial, 'Microsoft YaHei', "Hiragino Sans GB", SimSun, sans-serif;
        }
    </style>
    <div class="top-nav-wrapper">
        <div class="top-nav clearfix">
            <div class="top-nav-list"><a href="/" class="top-nav-home"> </a> <a href="/kyzx/zcdh/">政策</a> <a
                    href="/kyzx/kydt/">资讯</a> <a href="/sch/">院校库</a> <a href="/zyk/">专业库</a> <a href="/zsml/">硕士目录</a>
                <a href="/sswbgg/">网报公告</a> <a href="/yzwb/">统考网报</a> <a href="/apply/cjcx/">成绩查询</a> <a
                        href="/yztj/">网上调剂</a> <a href="/tm/">推免服务</a> <a href="/zsgs/">信息公开</a> <a
                        href="/zxdy/">在线咨询</a> <span class="top-nav-hide"> <span class="top-nav-point">• • •</span>
       <div class="top-nav-pop">
        <ul>
         <li><a href="/kyzx/zt/zsxz.shtml">专业学位</a></li>
         <li><a href="/kyzx/zt/kyfs2024.shtml">复试分数线</a></li>
         <li><a href="/bsmlcx/">博士目录</a></li>
         <li><a href="/bsbm/" target="_blank">博士网报</a></li>
         <li class="last"><a href="/help/">帮助中心</a></li>
        </ul>
       </div> </span>
            </div>
            <div class="top-nav-load"><a href="https://yz.chsi.com.cn/user/?entrytype=yzgr">登录</a> | <a
                    href="https://account.chsi.com.cn/account/preregister.action?from=yz-home">注册</a>
            </div>
        </div>
    </div> <!-- 专业目录 共用header -->
    <style>
        .yz-header-banner-wrapper {
            margin-bottom: 10px;
            background: linear-gradient(179deg, #2094F0 0%, #1787E0 53%);
        }

        .yz-header-banner-wrapper .banner {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            height: 148px;
            line-height: 148px;
            background: url("https://t2.chei.com.cn/yz/assets/images/header-banner.png") no-repeat center top;
            color: #fff;
            text-shadow: 0 2px 2px rgb(0 0 0 / 6%);
        }

        .yz-header-banner-wrapper h1 {
            line-height: 50px;
            font-size: 38px;
            font-weight: 700;
        }

        .yz-header-banner-wrapper .ch-sub-title {
            margin-top: 4px;
            line-height: 26px;
            font-size: 16px;
        }
    </style>
    <div class="yz-header-banner-wrapper">
        <div class="banner">
            <h1>硕士专业目录</h1>
            <div class="ch-sub-title">
                用户可查询当年硕士招生专业的考试范围
            </div>
        </div>
    </div>
    <script>

        // 处理返回信息的函数
        function trim(s) {
            var q = '';
            for (i = 0; i < s.length; i++) {
                var curChar = s.charAt(i);
                if (curChar != ' ')
                    q = q + curChar;
            }
            return q;
        }

        /**
         * 根据长度截取先使用字符串，超长部分追加...
         * @param str 对象字符串
         * @param len 目标字节长度
         * @return 处理结果字符串
         */
        function cutString(str, len) {
            //length属性读出来的汉字长度为1
            if (str.length * 2 <= len) {
                return str;
            }
            var strlen = 0;
            var s = "";
            for (var i = 0; i < str.length; i++) {
                s = s + str.charAt(i);
                if (str.charCodeAt(i) > 128) {
                    strlen = strlen + 2;
                    if (strlen >= len) {
                        // return s.substring(0,s.length-1) + "..." + "<a href='javascript:void(0);' title='"+str+"'><i class=\"iconfont\" >&#xe60a;</i></a>";
                        return "<a class='js-from-title' href='javascript:void(0);' data-title='" + str + "'>详细 <i class=\"iconfont\" >&#xe60a;</i></a>";
                    }
                } else {
                    strlen = strlen + 1;
                    if (strlen >= len) {
                        // return s.substring(0,s.length-2) + "..." + "<a href='javascript:void(0);' title='"+str+"'><i class=\"iconfont\" >&#xe60a;</i></a>";
                        return "<a class='js-from-title' href='javascript:void(0);' data-title='" + str + "'>详细 <i class=\"iconfont\" >&#xe60a;</i></a>";
                    }
                }
            }
            return s;
        }
    </script> <!-- 专业目录院校-列表 -->
    <div class="container clearfix">
        <div class="zsml-row clearfix">
            <div class="zsml-list-head clearfix">
                <h2>2024年硕士专业目录查询</h2>
                <p class="zsml-summary">学科类别为必选项，其他至少填写一项。</p>
            </div> <!-- zsml-list-head  end -->
            <div class="zsml-list-box"><!-- 专业目录 共用查询区域 -->
                <!-- for zsml querysch.jsp and result.jsp 共用查询区域  -->
                <div class="ch-filter">
                    <form name="form2" method="post" id="form2" action="/zsml/queryAction.do"><select class="ch-select"
                                                                                                      name="ssdm"
                                                                                                      id="ssdm"
                                                                                                      style="width: 150px;">
                        <option>--选择省市--</option>
                    </select> <input class="ch-input" id="dwmc" name="dwmc" type="text" placeholder="请输入单位名称"
                                     maxlength="40"> <select class="ch-select" name="mldm" id="mldm"
                                                             onchange="initYjxk();" style="width: 150px;">
                        <option value="" selected>--选择门类--</option>
                    </select> <input type="hidden" name="mlmc" id="mlmc"> <span class="require-flag">*</span> <select
                            class="ch-select" name="yjxkdm" id="yjxkdm" onchange="initZy();" style="width: 150px;">
                        <option value="" selected>--选择学科类别--</option>
                    </select> <span class="require-flag"></span> <select name="zymc" id="zymc" class="ch-select"
                                                                         style="width: 180px;">
                        <option value="" selected>--选择专业--</option>
                    </select>
                        <!--             <input class="ch-input" type="text" id="zymc" name="zymc" placeholder="请输入专业名称" maxlength="40"> -->
                        <select class="ch-select" name="xxfs">
                            <option value="" selected>--选择学习方式--</option>
                            <option value="1">全日制</option>
                            <option value="2">非全日制</option>
                        </select> <input class="blue-btn" type="button" name="button"
                                         onclick="return zsmlSearchFormCheck()" value="查询">
                    </form>
                </div> <!-- ch-filter end -->
                <div class="zsml-filter-box clearfix">
                    <form name="form3" method="post" id="form3" action="/zsml/querySchAction.do"><input type="hidden"
                                                                                                        name="ssdm"
                                                                                                        value="23">
                        <input type="hidden" name="dwmc" value="哈尔滨工业大学"> <input type="hidden" name="mldm"
                                                                                        value=""> <input type="hidden"
                                                                                                         name="mlmc"
                                                                                                         value="">
                        <input type="hidden" name="yjxkdm" value="0812"> <input type="hidden" name="zymc" value="">
                        <input type="hidden" name="xxfs" value=""> <input type="hidden" name="pageno" value="1">
                        <ul class="zsml-zy-filter">
                            <li><input type="checkbox" value="081200" class="ch-check" id="zys081200" name="zys"> <label
                                    for="zys081200" title="[081200]计算机科学与技术">[081200]计算机科学与技术</label>  
                            </li>
                        </ul>
                        <div class="zsml-filter-submit"><input type="submit" value="确定" class="blue-btn-s">
                        </div>
                    </form>
                </div> <!-- 筛选 end -->
                <table class="ch-table more-content">
                    <thead>
                    <tr>
                        <th class="ch-table-center" width="65">考试方式</th>
                        <th>院系所</th>
                        <th>专业</th>
                        <th>研究方向</th>
                        <th class="ch-table-center" width="65">学习方式</th>
                        <th class="ch-table-center" width="80">指导教师</th>
                        <th class="ch-table-center" width="80">拟招生人数</th>
                        <th class="ch-table-center" width="65">考试范围</th>
                        <th class="ch-table-center" width="65">备注</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td class="ch-table-center">统考</td>
                        <td>(013)计算学部</td>
                        <td>(081200)计算机科学与技术</td>
                        <td>(00)不区分研究方向</td>
                        <td class="ch-table-center">全日制</td>
                        <td class="ch-table-center"><!--  -->
                            <div style=" width: 100px; overflow:hidden;  white-space: nowrap; text-overflow: ellipsis; ">
                                <span class="js-from-title" data-title=""></span>
                            </div>
                        </td>
                        <td class="ch-table-center">
                            <script language="javascript">
                                document.write(cutString('专业：15(不含推免)', 6));
                            </script>
                        </td>
                        <td class="ch-table-center"><a href="/zsml/kskm.jsp?id=1021321013081200001"
                                                       target="_blank">查看</a></td>
                        <td class="ch-table-center">
                            <script language="javascript">
                                document.write(cutString('报名期间中国研究生招生信息网公布的我校各学科拟招生人数为参考计划，后期会根据正式招生计划下达、实际录取推免硕士生情况以及统考生源情况等进行增减调整.', 6));
                            </script>
                        </td>
                    </tr>
                    <tr>
                        <td class="ch-table-center">统考</td>
                        <td>(902)哈尔滨工业大学（威海）</td>
                        <td>(081200)计算机科学与技术</td>
                        <td>(00)不区分研究方向</td>
                        <td class="ch-table-center">全日制</td>
                        <td class="ch-table-center"><!--  -->
                            <div style=" width: 100px; overflow:hidden;  white-space: nowrap; text-overflow: ellipsis; ">
                                <span class="js-from-title" data-title=""></span>
                            </div>
                        </td>
                        <td class="ch-table-center">
                            <script language="javascript">
                                document.write(cutString('专业：2(不含推免)', 6));
                            </script>
                        </td>
                        <td class="ch-table-center"><a href="/zsml/kskm.jsp?id=1021321902081200001"
                                                       target="_blank">查看</a></td>
                        <td class="ch-table-center">
                            <script language="javascript">
                                document.write(cutString('报名期间中国研究生招生信息网公布的我校各学科拟招生人数为参考计划，后期会根据正式招生计划下达、实际录取推免硕士生情况以及统考生源情况等进行增减调整.', 6));
                            </script>
                        </td>
                    </tr>
                    <tr>
                        <td class="ch-table-center">统考</td>
                        <td>(903)哈尔滨工业大学（深圳）</td>
                        <td>(081200)计算机科学与技术</td>
                        <td>(00)不区分研究方向</td>
                        <td class="ch-table-center">全日制</td>
                        <td class="ch-table-center"><!--  -->
                            <div style=" width: 100px; overflow:hidden;  white-space: nowrap; text-overflow: ellipsis; ">
                                <span class="js-from-title" data-title=""></span>
                            </div>
                        </td>
                        <td class="ch-table-center">
                            <script language="javascript">
                                document.write(cutString('专业：11(不含推免)', 6));
                            </script>
                        </td>
                        <td class="ch-table-center"><a href="/zsml/kskm.jsp?id=1021321903081200001"
                                                       target="_blank">查看</a></td>
                        <td class="ch-table-center">
                            <script language="javascript">
                                document.write(cutString('报名期间中国研究生招生信息网公布的我校各学科拟招生人数为参考计划，后期会根据正式招生计划下达、实际录取推免硕士生情况以及统考生源情况等进行增减调整.', 6));
                            </script>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="zsml-page-tip">
                注：本系统数据由各招生单位上报，如有疑问请咨询相关招生单位。
            </div>
            <div class="zsml-page-box">
                <ul class="ch-page">
                    <li class="lip unable lip-first"><i class="iconfont"></i></li>
                    <li class="lip selected"><a href="####" onclick="nextPage(1)">1</a></li>
                    <li class="lip unable lip-last"><i class="iconfont"></i></li>
                </ul>
            </div>
        </div>
    </div>
</div> <!-- 4: 底部区域 -->
<style>
    /**
     * description: footer 共用底部;
     * author:myx;
     * date:2017-07;
     */

    .footer-wrapper {
        line-height: 30px;
        background: #282828;
        color: #ababab;
    }

    .footer-wrapper a {
        color: #ababab;
    }

    .footer-wrapper .footer {
        position: relative;
        width: 1180px;
        height: 198px;
        margin: 0 auto;
    }

    .footer-wrapper .footer-list {
        position: absolute;
        top: 32px;
        left: 0px;
    }

    .footer-wrapper .footer-list a {
        margin-right: 15px;
    }

    .footer-wrapper .footer-units {
        position: absolute;
        top: 75px;
        left: 0px;
    }

    .footer-wrapper .footer-media {
        position: absolute;
        top: 32px;
        left: 844px;
    }

    .footer-wrapper .footer-media a {
        display: inline-block;
        margin-right: 30px;
        vertical-align: top;
    }

    .footer-wrapper .footer-media a:hover {
        text-decoration: none;
    }

    .footer-wrapper .footer-media .iconfont {
        margin-right: 5px;
        font-size: 20px;
        vertical-align: middle;
    }

    .footer-wrapper .footer-msg {
        position: absolute;
        top: 75px;
        left: 844px;
    }
</style>
<div class="footer-wrapper">
    <div class="footer">
        <div class="footer-list"><a href="//www.chsi.com.cn/" target="_blank">学信网</a> <a
                href="https://chesicc.chsi.com.cn/zxgw/zxjs/201604/20160418/1529506207.html"
                target="_blank">中心简介</a> <a href="/doc/about.jsp" target="_blank">关于我们</a> <a
                href="/doc/copyright.jsp" target="_blank">版权声明</a> <a href="/help/" target="_blank">帮助中心</a> <a
                href="/sitemap.jsp" target="_blank">网站地图</a> <a
                href="https://www.chsi.com.cn/ad/202403/20240322/2293272455.html" target="_blank">网站宣传</a>
        </div>
        <div class="footer-units">
            主办单位：<a href="https://chesicc.chsi.com.cn/"
                        target="_blank">教育部学生服务与素质发展中心（原全国高等学校学生信息咨询与就业指导中心）</a><br>
            Copyright © 2003-2024 <a href="//www.chsi.com.cn/" target="_blank">学信网</a> All Rights Reserved<br> <a
                href="https://beian.miit.gov.cn" target="_blank">京ICP备19004913号-1</a> <a
                href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010202009747" target="_blank"> <img
                src="https://t1.chei.com.cn/chsi/images/jgwab.png"
                style="vertical-align: middle; margin-bottom: 2px; margin-left: 8px;"> 京公网安备11010202009747号 </a>
        </div>
        <div class="footer-media"><a href="/kyzx/kp/wbwx.shtml" target="_blank"><i class="iconfont"
                                                                                   title="官方微信"></i>官方微信</a> <a
                href="/kyzx/kp/wbwx.shtml" target="_blank"><i class="iconfont" title="官方微博"></i>官方微博</a>
        </div>
        <div class="footer-msg">
            客服热线：010-67410388<br> 客服邮箱：kefu#chsi.com.cn（将#替换为@）
        </div>
    </div>
</div>
<script>

    var xklbstr = "学科类别";
    var xklbostr = "--选择学科类别--";

    function doSelect(item, val) {
        for (var i = 0; i < item.options.length; i++) {
            if (item.options[i].value === val) {
                item.options[i].selected = true;
                return;
            }
        }
    }

    function initYjxk() {
        $("#yjxkdm").empty();
        $("#zymc").empty();
        $("<option value=''>--选择专业--</option>").appendTo("#zymc")//添加下拉框的option
        var mldm = $("#mldm").val();

        if (mldm == "zyxw") {
            xklbstr = "专业领域";
            xklbostr = "--选择专业领域--";
        } else {
            xklbstr = "学科类别";
            xklbostr = "--选择学科类别--";
        }
        //$("#xklbstr").html(xklbstr);
        $.ajax({
            type: "POST",
            async: false,
            url: "/zsml/pages/getZy.jsp",
            data: "mldm=" + mldm,
            dataType: "json",
            success: function (json) {
                $("<option value=''>--" + xklbostr + "--</option>").appendTo("#yjxkdm")//添加下拉框的option
                for (var i = 0; i < json.length; i++) {
                    $("<option value='" + json[i].dm + "'>" + "(" + json[i].dm + ")" + json[i].mc + "</option>").appendTo("#yjxkdm")//添加下拉框的option
                }
            }
        });
    }

    function initZy() {
        $("#zymc").empty();
        var yjxkdm = $("#yjxkdm").val();

        if (yjxkdm == "") {
            return;
        } else {
            $.ajax({
                type: "POST",
                async: false,
                url: "/zsml/code/zy.do",
                data: "q=" + yjxkdm,
                dataType: "json",
                success: function (json) {
                    $("<option value=''>--选择专业--</option>").appendTo("#zymc")//添加下拉框的option
                    if (json) {
                        for (var i = 0; i < json.length; i++) {
                            $("<option value='" + json[i] + "'>" + json[i] + "</option>").appendTo("#zymc")//添加下拉框的option
                        }
                    }
                }
            });
        }
    }

    function initMl() {
        $("#mldm").empty();
        $.ajax({
            type: "POST",
            async: false,
            url: "/zsml/pages/getMl.jsp",
            //data: "dwdm="+dwdm,
            dataType: "json",
            success: function (json) {
                $("<option value=''>--选择门类--</option>").appendTo("#mldm")//添加下拉框的option
                $("<optgroup label='专业学位'><option value='zyxw'>专业学位</option></optgroup").appendTo("#mldm")//添加下拉框的option
                var $_optgroup = $("<optgroup label='学术学位'></optgroup>");
                for (var i = 0; i < json.length; i++) {
                    $("<option value='" + json[i].dm + "'>" + "(" + json[i].dm + ")" + json[i].mc + "</option>").appendTo($_optgroup)//添加下拉框的option
                }
                $_optgroup.appendTo("#mldm");
            }
        });
    }

    function initSs() {
        $("#ssdm").empty();
        $.ajax({
            type: "POST",
            async: false,
            url: "/zsml/pages/getSs.jsp",
            //data: "dwdm="+dwdm,
            dataType: "json",
            success: function (json) {
                $("<option value=''>--选择省市--</option>").appendTo("#ssdm")//添加下拉框的option
                for (var i = 0; i < json.length; i++) {
                    $("<option value='" + json[i].dm + "'>" + "(" + json[i].dm + ")" + json[i].mc + "</option>").appendTo("#ssdm")//添加下拉框的option
                }
            }
        });

    }

    initSs(); // 初始化省市
    initMl(); // 初始化门类
    initYjxk(); // 初始化学科类别

    $(function () {
        doSelect(document.getElementById("form2").ssdm, '23');
        doSelect(document.getElementById("form2").mldm, '');
        initYjxk();
        doSelect(document.getElementById("form2").yjxkdm, '0812');
        doSelect(document.getElementById("form2").xxfs, '');
        $("#dwmc").attr("value", "哈尔滨工业大学");
        initZy();
        doSelect(document.getElementById("form2").zymc, '');
    })

    function OK(fData) {
        var ok = false;
        for (var i = 0; i < fData.length; i++) {
            if ((fData.charCodeAt(i) < 0) || (fData.charCodeAt(i) > 255)) {
                if (i + 1 < fData.length) {
                    if ((fData.charCodeAt(i + 1) < 0) || (fData.charCodeAt(i + 1) > 255)) {
                        ok = true;
                    }
                }

            }
        }
        return ok;
    }

    function nextPage(pageno) {
        var form3 = document.getElementById("form3");
        form3.pageno.value = pageno;
        form3.submit();
    }

    function goPageNo() {
        var pageno = document.getElementById("goPageNo").value;
        if (parseInt(pageno) > parseInt($("#goPageNo").attr("rel"))) {
            alert("此页不存在");
            return false;
        } else {
            nextPage(pageno)
        }
        ;
    }
</script> <!-- include_body 共用js --> <!-- body 底部共用js -->
<script src="https://t1.chei.com.cn/common/plugins/layer/layer.js"></script>
<script src="https://t1.chei.com.cn/common/plugins/placeholder-fix.js"></script>
<script src="https://t1.chei.com.cn/common/ch/browser/least-ie8.min.js"></script>
<link rel="stylesheet" href="https://t1.chei.com.cn/common/plugins/autocomplete/jquery.autocomplete.css">
<script src="https://t1.chei.com.cn/common/plugins/autocomplete/jquery.autocomplete.js"></script>
<style>
    /*修正：强制 layer中字符换行问题*/
    .layui-layer-content {
        word-wrap: break-word;
        word-break: break-all;
    }
</style>
<script>

    /**
     * [zsmlSearchFormCheck 检验硕士专业目录查询时条件]
     * @return {[true,false]} [表单是否通过]
     */
    function zsmlSearchFormCheck() {
        var flag = false,
            $xxfs = $("#form2 select[name=xxfs]"), // 学习方式
            $yjxkdm = $("#form2 select[name=yjxkdm]"), // 门类类别
            $ssdm = $("#form2 select[name=ssdm]"), // 省市
            $mldm = $("#form2 select[name=mldm]"), // 门类
            $dwmc = $("#form2 input[name=dwmc]"), // 单位名称
            $zymc = $("#form2 select[name=zymc]"); // 专业名称


        // 学习方式 和 门类类别 必须选
        if ($.trim($yjxkdm.val()) === "") {
            alert(xklbstr + "为必选项，其他至少填写一项。");
            return false;
        }

        // 其他必填一项
        if ($.trim($ssdm.val()) != "" || $.trim($mldm.val()) != "" || $.trim($dwmc.val()) != "" || $.trim($zymc.val()) != "" || $.trim($xxfs.val()) != "") {
            flag = true;
        }

        if (flag) {
            var zhfs = '';
            if ($ssdm.val()) {
                zhfs += '1';
            }
            if ($dwmc.val()) {
                zhfs += '2';
            }
            if ($mldm.val()) {
                zhfs += '3';
            }
            if ($yjxkdm.val()) {
                zhfs += '4';
            }
            if ($zymc.val()) {
                zhfs += '5';
            }
            if ($xxfs.val()) {
                zhfs += '6';
            }
            var obj = {
                '所在省市': $ssdm.find("option:selected").text(),
                '招生单位': $dwmc.find("option:selected").text(),
                '门类类别': $mldm.find("option:selected").text(),
                '专业名称': $zymc.find("option:selected").text(),
                '学习方式': $xxfs.find("option:selected").text(),
                '组合方式': zhfs
            }
            if ($mldm.val() === 'zyxw') {
                obj['专业领域'] = $yjxkdm.find("option:selected").text();
            } else {
                obj['学科类别'] = $yjxkdm.find("option:selected").text();
            }
            //zhuge.track('ssmlindex-search', obj);
            document.form2.submit();
        } else {
            alert("学科类别为必选项，其他至少填写一项。");
        }

    }

    /**
     * [dialogLoadFromAjax 通过ajax 获取html片段并显示在弹出层内 ]
     * @param  {[type]} url [description]
     * @return {[type]}     [description]
     */
    function dialogLoadFromAjax(el) {
        var $url = $(el).attr("href");
        $.ajax($url, {
            cache: true,
            success: function (data) {
                layer.open({
                    type: 1,
                    area: ['70%', '80%'],
                    title: "跨专业科目",
                    content: data //注意，如果str是object，那么需要字符拼接。
                });
            }
        })

    }

    $(function () {
        $(".js-from-href").click(function (event) {
            event.preventDefault();
            dialogLoadFromAjax(this);
            return false;
        });
        $(".js-from-title").mouseenter(function (event) {
            event.preventDefault();
            //layer层无需关闭，用户可能从tip层中拷贝内容，延迟5秒后关闭
            layer.tips($(this).attr("data-title"), this, {time: 5000, tips: [4, '#1887e0']});
            return false;
        });
        // 给专业目录中的招生单位增加自动完成
        $("#dwmc").autocomplete('/zsml/code/zsdw.do', {
            selectFirst: true,
            autoFill: true,
            selectOnly: true,
            remoteDataType: 'json'
        });

    });

</script>
</body>
</html>
